package com.atguigu.gmall.product.service;

import com.atguigu.gmall.product.entity.BaseCategory1;
import com.atguigu.gmall.product.vo.CategoryTreeVo;
import com.atguigu.gmall.product.vo.CategoryViewDTO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 10574
* @description 针对表【base_category1(一级分类表)】的数据库操作Service
* @createDate 2022-11-29 17:33:22
*/
public interface BaseCategory1Service extends IService<BaseCategory1> {

    /**
     * 获取三级属性
     * @return
     */
    List<CategoryTreeVo> getCategoryTree();

    /**
     *根据三级分类id，得到整个分类的完整路径
     * @param c3Id
     * @return
     */
    CategoryViewDTO getCategoryTreeWithC3Id(Long c3Id);
}
